package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ywb
 * @since 2022-01-07
 */
@Data
@EqualsAndHashCode
@TableName("roles")
public class RoleEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("\"name\"")
    private String name;
    
    @ApiModelProperty(value = "影院JD")
    private Integer cinemaId;
    
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
    
    @ApiModelProperty(value = "描述")
    @TableField("\"desc\"")
    private String desc;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic(value = "null", delval = "now()")
    @TableField(select = false)
    private LocalDateTime deletedAt;
}
